/**
 * Created by japin.pan on 18/3/29.
 */
import api from '@/api/request'
import { config } from '@/config/config'

class aging {

	// 履约时效分析
	getAgingData(token, body) {
		let param = Object.assign({}, {token: token}, {body: body || {}})
		return api.post(`/api/app/timeAnalysis/queryrStoresTimeAnalysisForReport/${config.appVersionNo}`, param)
	}

	// 趋势图接口
	getTrendChartData(token, body) {
		let param = Object.assign({}, {token: token}, {body: body || {}})
		return api.post(`/api/app/chart/getTrendChart/${config.appVersionNo}`, param)
	}

}

export default new aging()